// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.dcel;

/**
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public interface UnitVisitor {
  void visitBegin();
  
  void visitPackageName(String name);
  void visitUnitName(String name);
  
  void visitPinsBegin();
  void visitPin(String name);
  void visitPinsEnd();
  
  void visitComponentsBegin();
  void visitComponent(String name, String unitName, Integer... initArgs);
  void visitComponentsEnd();
  
  void visitJumpersBegin();
  void visitJumper(String componentName1, String pinName1, String componentName2, String pinName2);
  void visitJumpersEnd();
  
  void visitScriptBegin();
  void visitScriptEntry(String componentName);
  void visitScriptEnd();
  
  void visitEnd();
}
